﻿namespace LeRenard.Core.Cryptography
{
    /// <summary>
    /// Defines an encryptor.
    /// </summary>
    public interface IEncryptor
    {
        /// <summary>
        /// Encrypts the specified input.
        /// </summary>
        /// <param name="input">The input to be encrypted.</param>
        /// <returns>The input encrypted as a base64 string.</returns>
        string Encrypt(string input);

        /// <summary>
        /// Encrypts the specified input.
        /// </summary>
        /// <param name="input">The input to be encrypted.</param>        
        /// <returns>The input encrypted as a base64 string.</returns>
        string Encrypt(byte[] input);
    }
}
